<?php
/**
 * Created by PhpStorm.
 * User: 秋刀鱼
 * Date: 2018/8/14
 * Time: 16:13
 */

namespace app\models;

use yii\base\Model;
use Yii;
use \common\helps\tools;//使用工具类

class ProjectPlan extends Model
{
    /**
     * title 表名
     * @var string
     */
    protected $table = 'd_project_plan';


    /**
     * title 查询所有进度
     * @return array
     */
    public function selectPlan()
    {
        $query = new \yii\db\Query();
        $result = $query->select(['id','content'])->from(tools::databaseName(). '.' .$this->table)->all();
        return $result;
    }

}